#include "../src/common.h"
#include <iostream>

// 对所有 PAINT 里面的绘图函数进行测试
int main () {
	WINDOW win (800, 600);
	for (int a = 0, b; a < 50; a ++) {
		for (b = 0; b < a; b ++) {
			win.drawPixel (50+a,50+b);
		}
	}
	win.drawLine (100, 100, 200, 200);
	win.drawLineAA (100, 200, 200, 100);
	win.drawLineH (100, 200, 150);
	win.drawLineV (150, 100, 200);
	win.drawLineW (100, 250, 300, 300, 20);
	win.drawRect (100, 400, 300, 420);
	win.drawFillRect (300, 100, 500, 200);
	win.drawRoundRect (300, 400, 500, 480, 20);
	win.drawFillRoundRect (300, 500, 400, 550, 20);
	win.drawCircle (400, 400, 100);
	win.drawCircleAA (600, 600, 50);
	win.drawFillCircle (500, 500, 75);
	win.drawPie (400, 300, 100, 0, 270);
	win.drawFillPie (400, 400, 50, -90, 90);
	win.drawString (100, 100, "Hello World", 0x98bf78ff);
	win.update ();
	getchar ();
}